export default {
  namespaced: true,
  state: {
    items: [], // 购物车中的商品
    buyNumber: 0 // 所有购买数量
  },
  mutations: {
    init_cart_info (state, { items, buyNumber }) {
      state.items = items
      state.buyNumber = buyNumber
    }
  }
}
